Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Readme proofreading/formatting #119

Merged
merged 1 commit into from
Feb 26, 2024
Merged

Conversation

evan-masseau
Copy link
Contributor

Did a pass over the readme again since I was a bit distracted reviewing the earlier PR

@evan-masseau evan-masseau requested a review from a team as a code owner February 23, 2024 20:13

### React Native Initialization

Below is an example of how to initialize the SDK from your React Native code:

```typescript
import { Klaviyo } from 'klaviyo-react-native-sdk';
Klaviyo.initialize('YOUR_KLAVIYO_PUBLIC_API_KEY');
Klaviyo.initialize('YOUR_PUBLIC_KLAVIYO_API_KEY');
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the smallest nitpick, but this is the value we used in the code.


2. Leveraging a third party library that provides cross-platform permissions APIs like firebase [`react-native-firebase/messaging`](https://www.npmjs.com/package/@react-native-firebase/messaging). If you opt for a
cross-platform permission solution, you can now call the Klaviyo's react native SDK's `setToken` method to refresh the token's enablement status.
1. **React Native Notification Permission**:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I figured for consistency we should put react native section first

Copy link
Collaborator

@ajaysubra ajaysubra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@@ -444,7 +445,7 @@ Linking.getInitialURL().then((url) => {

## Troubleshooting

Use the [troubleshooting guide](Troubeshooting.md) to resolve common issues with the Klaviyo React Native SDK.
Use the [troubleshooting guide](Troubleshooting.md) to resolve common issues with the Klaviyo React Native SDK.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤦🏽

@@ -444,7 +445,7 @@ Linking.getInitialURL().then((url) => {

## Troubleshooting

Use the [troubleshooting guide](Troubeshooting.md) to resolve common issues with the Klaviyo React Native SDK.
Use the [troubleshooting guide](Troubleshooting.md) to resolve common issues with the Klaviyo React Native SDK.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤦🏽

@evan-masseau evan-masseau merged commit bd5bd20 into master Feb 26, 2024
5 checks passed
@evan-masseau evan-masseau deleted the ecm/readme-proofreading branch February 26, 2024 15:28
evan-masseau pushed a commit that referenced this pull request Feb 26, 2024
…native-sdk into ecm/ci-cache-skip

* 'ecm/ci-cache-skip' of github.com:klaviyo/klaviyo-react-native-sdk:
  Readme proofreading/formatting (#119)
evan-masseau added a commit that referenced this pull request Feb 26, 2024
…on specifically" (#122)

* Link to license file in README (#60)

Co-authored-by: Evan Masseau <>

* Updated readme to include troubleshooting steps when running pod install (#63)

updated readme

* Updating version to 0.1.1 (#66)

* 0.1.1

* updating version

* reverting back to use older rn version

* updating yarn lock

* removing changes to package lock file

* Fixes for React Native Apps <= 0.72.0 (#71)

* Fix the react-native gradle dependency
* Add a local property to enable specifying react-native version for the SDK for local development
* Specify Kotlin version that is compatible with Android SDK's (although this didn't seem to actually cause any build errors)
* Remove accidental use of an extension method that is technically SDK 24+

---------

Co-authored-by: Evan Masseau <>

* Update local.properties template files (#68)

* Add template local.properties file to example app
* Be clearer about VCS status of these files.

---------

Co-authored-by: Evan Masseau <>

* Bump example iOS project lockfile (#74)

I think this needs to be bumped when we increase the overall project version.

Co-authored-by: Evan Masseau <>

* Github CI Updates (#75)

* Move doc bot to its own file so we don't have to see it as skipped all the time.

* Use same ruby version as local dev environment

* Stop using `yarn pod-install` because it creates an erroneous xcode.env.local file that breaks the hermes build scripts.

---------

Co-authored-by: Evan Masseau <>

* Updating to iOS SDK 3.0.2 (#77)

* 0.1.1

* updated to us latest iOS SDK

* removing package lock

* Pod install | static linking issue | RCT Folly | Turbo modules (#70)

* 0.1.1

* removed turbo module stuff and added xcconfig

* removing package lock

* comitting example app pod lock file

---------

Co-authored-by: Evan Masseau <>
Co-authored-by: Evan C Masseau <[email protected]>

* Readme rewrite with references to native SDKs and Klaviyo help center (#62)


---------

Co-authored-by: Evan Masseau <>
Co-authored-by: Kenny Tsui <[email protected]>

* Release 0.1.2  (#84)

* 0.1.1

* Release 0.1.2

* removed package lock

* podlock file changes

* Break up CI files so we can get individual badges (#86)

* Break up CI files so we can get individual badges

* Add badges and fix names

---------

Co-authored-by: Evan Masseau <>

* Add action to publish to NPM after publishing a release (#82)


---------

Co-authored-by: Evan Masseau <>

* Update README.md (#90)

* Publish to NPM with the default npm registry configured in package.json (#92)


---------

Co-authored-by: Evan Masseau <>

* Updated iOS instructions in example app (#99)

* 0.1.1

* udpate the example app to implement push

* hanlded deep links

* removed package json lock file

* updated to addressed Evan comments in the pr

* Fix mistaken duplicate open push section (#95)

Co-authored-by: Evan Masseau <>

* Remove local.properties from git index (#96)

* remove local.properties from git index, changes were still being tracked despite gitignore

* missed variable

---------

Co-authored-by: Evan Masseau <>

* Update README.md (#105)

* Update README.md

* Update README.md

* Implemented deep links to call react native in example iOS app (#104)

* 0.1.1

* implemented deep linking calls to react native

* removed unused method

* removed package lock

* added deep linking hanlder

* [CHNL-5592] Adding troubleshooting guide linked from readme (#109)

* 0.1.1

* added troubleshooting

* removed packagfe lock

* added troibleshoting to the contents

* swapped android and ios

* [Dependabot] Bump ip from 1.1.8 to 1.1.9 (#111)

Bumps [ip](https://github.com/indutny/node-ip) from 1.1.8 to 1.1.9.
- [Commits](indutny/node-ip@v1.1.8...v1.1.9)

---
updated-dependencies:
- dependency-name: ip
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Add example app instructions to README, make use of Gemfile (#97)

* To make proper use of bundle, lockfile needs to be committed. I specified a cocoapods version since podfile.lock contains cocoapods version!
Add explicit instructions about example app

* Added alias for entire example app setup script
Try updating CI step to use gem to pin cocoapods version

---------

Co-authored-by: Evan Masseau <>

* Bridge initialize and setPushToken to RN layer (#98)

* Add an initialize method to react native layer

* Add set push token to RN layer

* Updated to latest versions of native SDKs

* Elaboration on example app initialize/setPushToken, use a consistent value for example API key

* SCREAMING_SNAKE_CASE

---------

Co-authored-by: Evan Masseau <>

* [CHNL-5370] Updating readme to include instructions on how to use `initialize` and `setToken` from RN code. (#113)

* 0.1.1

* added troubleshooting

* updated readme with initilize and set token instructions

* adding notifee stuff to trouble shooting guide

* removed duplicate android

* removed package.json

* some minor fixes

* added example on requesting permission

* Apply suggestions from code review

Co-authored-by: Evan C Masseau <[email protected]>

* minor updates

* review comments

* updated readme

---------

Co-authored-by: Evan C Masseau <[email protected]>

* Update to version 0.2.0 (#116)

Update to v 0.2.0

Co-authored-by: Evan Masseau <>

* Readme proofreading/formatting (#119)

Co-authored-by: Evan Masseau <>

* Podfile and CI fixes (#120)

* Use 1.14.3 pod version specifically

* Skip all caches if manually re executing CI 

---------

Co-authored-by: Evan Masseau <>

* Generated docs for ad12079

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Evan C Masseau <[email protected]>
Co-authored-by: Ajay Subramanya <[email protected]>
Co-authored-by: Kenny Tsui <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants